package com.dks.repository;

import java.util.*;
import com.dks.models.Task;
import com.dks.result.ResultModel;

public interface ITaskRepository {

    Integer insert(Task task);

    Integer update(Task task);

    Integer delete(Integer id);

    Task select(Integer id);

    Integer cntByMap(Map<String, Object> map);

    List<Integer> getByMap(Map<String, Object> map);

    List<Task> getByMapList(Map<String, Object> map);

    Integer updateByCode(Task task);

    Task selectByBfCode(String bfCode);

    ResultModel<Object> getTaskInfo(Integer chapterId);

    ResultModel<Object> getStudentTaskList(Integer taskId,Integer pageNum, Integer pageSize);
}
